package com.dlc.shop.user.common.model;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 弹窗广告记录
 * @author TRACK
 */
@Data
@TableName("tz_popup_user_log")
public class PopupUserLog implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 关联id
     */
    @TableId
    private Long popupUserLogId;

    /**
     * 弹窗广告id
     */
    private Long popupId;

    /**
     * 弹窗时间 yyMMdd
     */
    private Integer createTime;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 游客uuid
     */
    private String uuid;

    /**
     * 最大推送时间
     */
    @TableField(exist = false)
    private Integer maxTime;

    /**
     * 最小推送时间
     */
    @TableField(exist = false)
    private Integer minTime;

    public PopupUserLog() {
    }

    public PopupUserLog(Long popupId, String userId, String uuid) {
        this.popupId = popupId;
        this.userId = userId;
        this.uuid = uuid;
    }
}
